package com.barrett.hvzmoderator.com.barrett;

public class hvzplayer {
	String name, killid, avatar;
	int uid, status, tags;
	
	public hvzplayer(int u, String n, String kill, int st, int ta) {
		uid = u;
		name = n;
		killid = kill;
		status = st;
		tags = ta;
	}
	public hvzplayer(String csvinput) {
		String attributes [] = csvinput.split(",");
		uid = Integer.parseInt(attributes[0]);
		name = attributes[1];
		killid = attributes[2];
		status = Integer.parseInt(attributes[3]);
		tags = Integer.parseInt(attributes[4]);
	}
	public String toString(){
		return uid + "," + name + "," + killid + "," + status + "," + tags;
	}
	public String statusToString(){
		
		switch (this.status) {
			case 1:
			{
				return "Human Resistance";
			}
			case 2:
			{
				return "Zombie Horde";
			}
			case 3:
			{
				return "Original Zombie (Revealed)";
			}
			case 4:
			{
				return "Original Zombie (Hidden)";
			}
			default:
			{
				return "";
			}
		}
		
	}
	
}
